package ooday01;
/**  学生类的测试类*/
public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student zs = new Student();
        //访问成员变量
        zs.name = "张三";
        zs.age = 24;
        zs.className = "jsd2302";
        zs.stuId = "001";
        //调用方法
        zs.study();
        zs.sayHi();
        zs.playWith("ls");

        Student ww = new Student();
        ww.study();
        ww.sayHi();
        ww.playWith("zs");

        Student ls = new Student();
        ls.name = "zb";
        ls.age = 30;
        ls.className = "150901";
        ls.stuId = "010";

        ls.study();
        ls.sayHi();
        ls.playWith("zs");



    }
}
